package com.blog.mapper;

import com.blog.pojo.Article;
import com.blog.pojo.ArticleComment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: VE
 * @DATE: 2022/10/11 14:48
 * 描述:
 */
@Mapper
public interface ArticleMapper {

    int insert(Article article);


    int delete(int aid);


    int update(Article article);

    Article load(int aid);

    List<Article> findAllArticle();

    List<Article> findArticleByUid(Integer uid);

    List<ArticleComment> findAllCommentByAid(Integer aid);
}
